package com.bug.dao;

import com.bug.domain.Bug;
import com.bug.mapper.BugMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: mayuanbao
 * @date: 2019-01-09 15:28
 * @description:
 */
@Repository(value = "bugDao")
public class BugDaoJdbc extends BaseDao implements IBugDao {
    @Override
    public List<Bug> getBugs(){
        return getSqlSession().getMapper(BugMapper.class).getBugs();
    }
}
